<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<jsp:include page="head.htm" />
</head>
<body>
	<jsp:include page="loggedIn.jsp" />
	<jsp:include page="isAdmin.jsp" />
	<div id="head">
		<h1>Zeiterfassung</h1>
	</div>
	<jsp:include page="menu.jsp" />
	<div id="content">
		<a href="EditProjekte.html" class="button">neues Projekt anlegen</a> <br />
		<br />
		<h2>
			<c:out value="${title}" />
		</h2>
		<p>
			<c:out value="${message}" />
		</p>
		<table cellpadding="0" cellspacing="0" class="atag">
			<tr>
				<th colspan="2">&nbsp;</th>
				<th>Name</th>
				<th>Aktivierung</th>

			</tr>
			<c:forEach items="${projekte}" var="projekte">
				<tr>
					<td><a
						href="EditProjekte.html?id=<c:out value="${projekte.id}"/>"> <img
							src="images/edit_s.png" alt="Icon - Bearbeite Projekte" />
					</a></td>
					<td><a
						href="DeleteProjekte.html?id=<c:out value="${projekte.id}"/>">
							<img src="images/delete.png" alt="Icon - Lösche Projekte" />
					</a></td>

					<td><c:out value="${projekte.projekt_bez}" /></td>
					<td><c:choose>
							<c:when test="${projekte.projekt_aktiv}">
								<c:out value="ja"></c:out>
							</c:when>
							<c:when test="${!projekte.projekt_aktiv}">
								<c:out value="nein"></c:out>
							</c:when>
						</c:choose></td>
				</tr>
			</c:forEach>
		</table>
	</div>
</body>
</html>
